@model ShivamEMR.Model.Domain.UserDomain.UserRole
           
           @using MVCControlsToolkit.Core;
@using MVCControlsToolkit.Controls;
@using MVCControlsToolkit.Controls.Validation;

@* This partial view defines form fields that will appear when creating and editing entities *@

 
<div class="editor-label">
    @Html.LabelFor(model => model.Role)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Role)
    @Html.ValidationMessageFor(model => model.Role)
</div>

 

<div class="editor-label">
    @Html.LabelFor(model => model.Rights)
</div>
<div class="editor-field">   
   <div id="demoTree" >
       </div>
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Notes)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Notes)
    @Html.ValidationMessageFor(model => model.Notes)
</div> 
   
   <script type="text/javascript">     
        treeModel = @Html.Raw((string)ViewBag.jsonModel);
</script>